# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=qqwing
pkgver=1.3.4
pkgrel=5
pkgdesc="Sudoku generating and solving software"
arch=('x86_64')
url='https://qqwing.com/'
depends=(gcc-libs)
license=('GPL2')
source=(https://qqwing.com/$pkgname-$pkgver.tar.gz)
sha256sums=('1753736c31feea0085f5cfac33143743204f8a7e66b81ccd17e249ecafba802f')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
